<template>
  <xtx-dialog title="修改密码" :visible.sync="visibleDialog">
    <div class="form-item">
      <span class="label">原密码：</span>
      <input type="text" placeholder="请输入原密码" />
    </div>
    <div class="form-item">
      <span class="label">新的密码：</span>
      <input type="text" placeholder="设置6至20位登录密码" />
    </div>
    <div class="form-item">
      <span class="label">确认密码：</span>
      <input type="text" placeholder="请再次输入登录密码" />
    </div>
  </xtx-dialog>
</template>

<script>
export default {
  name: 'password-edit',
  data () {
    return {
      visibleDialog: false
    }
  },
  methods: {
    open () {
      this.visibleDialog = true
    }
  }
}
</script>

<style scoped lang='less'>
.form-item {
  display: flex;
  line-height: 50px;
  padding-bottom: 20px;
  .label {
    width: 100px;
    text-align: right;
    padding-right: 10px;
    color: #999;
  }
  input {
    width: 350px;
    height: 50px;
    border: 1px solid #e4e4e4;
    padding: 0 10px;
    &::placeholder {
      color: #ccc !important;
    }
  }
}
</style>
